package kin.test;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.LinkedHashMap;

//import net.sf.cglib.proxy.Enhancer;
//import net.sf.cglib.proxy.MethodInterceptor;
//import net.sf.cglib.proxy.MethodProxy;

 
  
public class BBB{ //implements MethodInterceptor {  
    public Object aaa(LinkedHashMap<String, Boolean> a,LinkedHashMap<String, Boolean> b,LinkedHashMap<String, Boolean> c){
		return "String";
    	
    }
    
    public static void main(String[] args) {
    	LinkedHashMap<String, Boolean> bb=new LinkedHashMap<String, Boolean>();
    	bb.put("aaa", false);
	BBB b=new BBB();
	try {
		Method m=b.getClass().getMethod("aaa", new Class[]{LinkedHashMap.class,LinkedHashMap.class,LinkedHashMap.class});
		Object o=m.invoke(b, new Object[]{null,bb,null});
		
	} catch (NoSuchMethodException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (SecurityException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (IllegalAccessException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (IllegalArgumentException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (InvocationTargetException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
	}
      
  /*  public Object getProxyInstance(Object target) {    
        this.target = target;  
        Enhancer enhancer = new Enhancer();    
        enhancer.setSuperclass(this.target.getClass());    
        enhancer.setCallback(this);  
        return enhancer.create();  
    }

	public Object intercept(Object arg0, Method arg1, Object[] arg2,
			MethodProxy arg3) throws Throwable {
		System.out.println("before target method...");
		if(null!=arg2[0]){
			System.out.println("zgggg-------"+arg2[0]);
		}
        Object result = arg3.invoke(target, arg2);  
        System.out.println("after target method...");  
        return result;  
	}    */
      
   
}  